import request from '@/utils/request'

// 查询芝麻信用用户
export function listZhiMa(queryParams) {
  const { startDate, endDate,channelCode } = queryParams;
  return request({
    url: '/index/data/sortZhima',
    method: 'get',
    params: { startDate, endDate,channelCode },
  });
}

// 查询消耗余额
export function listApi(queryParams) {
  const { startDate, endDate } = queryParams;
  return request({
    url: '/index/data/organizeApi',
    method: 'get',
    params: { startDate, endDate },
  })
}

// 查询表单消耗
export function listBiaoDan(queryParams) {
  const { startDate, endDate } = queryParams;
  return request({
    url: '/index/data/push',
    method: 'get',
    params: { startDate, endDate },
  })
}

// 查询成本
export function listCost(queryParams) {
  const { startDate, endDate,channelCode } = queryParams;
  return request({
    url: '/index/data/cost',
    method: 'get',
    params: { startDate, endDate,channelCode },
  })
}

// 查询联登 uv消耗余额
export function unionAndProductList(queryParams) {
  const { startDate, endDate } = queryParams;
  return request({
    url: '/index/data/unionAndProductList',
    method: 'get',
    params: { startDate, endDate },
  })
}
// 用户注册
export function authAndSourceList(queryParams) {
  const { startDate, endDate, regAppCode } = queryParams;
  return request({
    url: '/index/data/authAndSourceList',
    method: 'get',
    params: { startDate, endDate, regAppCode },
  })
}
// 最近七天
export function authAndSourceByWeekList(queryParams) {
  const { startDate, endDate, regAppCode } = queryParams;
  return request({
    url: '/index/data/authAndSourceByWeekList',
    method: 'get',
    params: { startDate, endDate, regAppCode },
  })
}
// 开单统计
export function merchantPushByWeekList(queryParams) {
  const { startDate, endDate, regAppCode } = queryParams;
  return request({
    url: '/index/data/merchantPushByWeekList',
    method: 'get',
    params: { startDate, endDate, regAppCode },
  })
}
